<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="./assets/css/index.css">
    <title>看电影</title>
</head>
<body class="movie-body">
<div class="movie-all">
    <h1><a href="http://blog.eson.site/">
        <img
                src=""
                alt="看电影" title="看电影">
    </a></h1>
    <ul class="movie-list">
        <?php foreach ($list as $item): ?>
        <li>
            <div>
                <?php if (is_array($item)): ?>
                <a href="?N=<?= $item['hash']; ?>&T=hls">
                    <img src="./video/hls/<?= $item['thum']; ?>"
                         title="<?= $item['name']; ?>">
                    <p><?= $item['name']; ?></p>
                </a>
                <?php else: ?>
                <a href="?N=<?= $item; ?>">
                    <img src="./video/thum/<?= $item; ?>.jpg" title="<?= $item; ?>">
                    <p><?= $item; ?></p>
                </a>
                <?php endif; ?>
            </div>
        </li>
        <?php endforeach ?>
    </ul>
</div>
</body>
</html>